package com.hellogood.yaohuo.shared.services;

import java.util.List;

import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
import com.hellogood.yaohuo.shared.entity.GroupUser;
import com.hellogood.yaohuo.shared.entity.User;
import com.hellogood.yaohuo.shared.vo.GroupVo;

@RemoteServiceRelativePath("GroupUserService")
public interface GroupUserService extends RemoteService {
	public static class Util {
		private static GroupUserServiceAsync instance;

		public static GroupUserServiceAsync getInstance() {
			if (instance == null) {
				instance = GWT.create(GroupUserService.class);
			}
			return instance;
		}
	}
	
	public List<GroupVo> getAllGroupUserList();
	
	public String updateUserListForGroup(List<User> userList, String groupCode);

	public List<GroupUser> getGoupUserByGroupCode(String groupCode);
}
